﻿#include "OperAbstractSubsystem.h"
#include "FITK_Component/FITKAcousticsModel/FITKAcousticsDiscModel.h"
#include "FITK_Component/FITKAcousticsModel/FITKAcousticsSEAModel.h"
#include "FITK_Component/FITKAcousticsModel/FITKAcousticsFEModel.h"
#include "FITK_Component/FITKAcousticsPhysics/FITKAcousticsPhysics.h"

namespace EventOper
{
    OperAbstractSubsystem::OperAbstractSubsystem()
    {
        //获取SEA子系统管理器
        Acoustics::FITKAcousticsDiscModel* disc = Acoustics::FITKAcousticsDiscModel::GetDiscModelFromFrame();
        if (!disc)return;
        Acoustics::FITKAcousticsSEAModel* model = disc->getSEAModel();
        if (!model)return;
        _seaMgr = model->getSEASubSysManager();
        //获取频谱管理器
        Acoustics::FITKAcousticsPhysics* phys = Acoustics::FITKAcousticsPhysics::GetAcousticsPhysicsFromFrame();
        if (phys == nullptr) return;
        _specMgr = phys->getFITKAcousticsSpectraManager();
        //获取FE子系统管理器
        Acoustics::FITKAcousticsFEModel* femodel = disc->getFEModel();
        if (!femodel)return;
        _feMgr = femodel->getFESubSysManager();
    }
    OperAbstractSubsystem::~OperAbstractSubsystem()
    {
        //虚函数
    }
    void OperAbstractSubsystem::editSubsystem(const int seaID)
    {
        //虚函数
    }
    void OperAbstractSubsystem::removeSubsystem(const int seaID)
    {
        //虚函数
    }
    void OperAbstractSubsystem::setAttribute(const QString & name, const QString & currentText, const int attrIndex, const QList<int>& seaIDs)
    {
        //虚函数
    }
}